home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-07 | 7.0 KB | 163 lines | [ttro/ttxt] |
- Welcome to Codeworks!
-
- Glyphic Codeworks is a small (but powerful) object-oriented dynamic
- development environment. Codeworks runs in less than 2 MB of memory,
- and the application and necessary libraries fill less than 1 MB of disk space.
-
- In this document, which is meant to get you started with Codeworks, we
- provide:
-
- • the history of Codeworks, and the reason that this version of Codeworks
- is a demo version;
-
- • a brief tutorial introduction to Codeworks; and
-
- • a recommended path to take through our document set.
-
-
-
- Codeworks History, and Where It's Going
-
- Codeworks was created in 1993 by Glyphic Technology out of a desire to create
- a new, small, development environment that was both easy to use and based on
- sound language design principles. The first commercial version of Codeworks
- was produced for EO to run on Go's PenPoint operating system. Since then, it
- has been substantially reengineered to be a cross-platform, platform-
- independent system. It now runs on Macintosh; a Windows version will be
- available shortly.
-
- Codeworks is a prototype-based object-oriented system. In a prototype-based
- system, there is no difference in a class and an object. A class is created
- by creating a usable object; this object can be used directly, or copied to
- make other instances of the same class. The instance variables and methods
- of these copies can be changed or added to, which allows easy subclassing.
-
- This version of Codeworks is a demo version. A more complete version is
- planned for February, and a commercial version will be available sometime in
- mid-1996. This version is called a "demo" because it isn't quite what we'd
- like it to be yet. The first non-demo version will have (among other
- things):
-
- • more standard keyboard controls. For example, on the Macintosh,
- command-a usually activates a select all in a text window. This demo
- version of Codeworks doesn't support select all and certain other
- standard commands.
-
- • better documentation. These documents were adapted directly from the
- PenPoint version of Codeworks; some of these original documents are
- flawed, some are missing, and new tutorials need to be developed.
-
-
- A Brief Codeworks Tutorial
-
- This extremely short tutorial is meant to cover some of the gaps in the
- current document set. In it, you will look at a small Codeworks program, and
- learn some of the commands and keys that Codeworks uses. Steps to follow
- along with are presented in a plain-text font, and general points about
- Codeworks are bulleted and indented.
-
- This tutorial assumes that you have at least some background in
- object-oriented programming. If you don't, you can still do the tutorial,
- but some of the terms and ideas may be puzzling until you've gone through
- the longer Codeworks manuals.
-
- Open the Codeworks folder. You'll find the Codeworks program, and a number
- of other folders/files as well. Open the Codeworks Samples folder and
- double-click on the Spaceship document.
-
- You'll find yourself staring at a window called Spaceship. This is the
- default view of a spaceship object. This spaceship object has a number of
- instance variables, including size, direction, and x and y location.
-
- Click on the rotate-r button. The spaceship's direction changes. The
- rotate-r, rotate-l, reset, forward, and back buttons all change the instance
- variables of the spaceship. To read the scripts of these buttons, press the
- escape key and then double-click on the button of interest.
-
- • To toggle between User and Author modes for any Codeworks window,
- press the escape key.
-
- Here's another way of getting to the script of any particular button: switch
- into author mode (by pressing the escape key), and click on a button while
- holding the command key down. Choose Open... from the resulting pop-up menu,
- and choose script-browser-view from the second pop-up.
-
- • Every item on the screen has a number of options that can be
- changed. Command-click on any object to see a list of options, and
- to edit these options.
-
- Switch back to user mode, using the escape key. Press the run-program
- button. The long string in the field above this button is a program for the
- spaceship: "f" means forward, "b" is back, "r" is right, and "l" is left. The
- instance variables of the spaceship change according to the program
- instructions.
-
- Press the show-window button, and then the reset button. A second view of
- the same object appears. Press the run-program button, and as the values of
- the instance variables change, the spaceship picture will change as well.
- Same object, different view.
-
- To see the list of views for the spaceship, command-click in the titlebar of
- either of the two spaceship windows. Choose Options... from the resulting
- popup, and then choose View Management. Views can be displayed, added,
- changed, or deleted from here.
-
- • Command-click on a titlebar to get a list of editable options for
- that class.
-
- • To add a view to an existing class, open the titlebar options,
- then choose Options... followed by View Management.
-
- The spaceship is drawn in the second window via a script called draw for the
- window's view. To see this script, command-click in the titlebar of that
- window, and choose Edit Draw Script.
-
- • Drawable views are drawn according to the code of the draw script
- for that view's window. To edit the draw script for a drawable
- view, command-click in the window's titlebar, and choose Edit Draw
- Script.
-
- This should be enough to get you started. Here are a few other hints:
-
- • Every object can be viewed via a slot browser by command-clicking
- on the object's window titlebar while in author mode, and then
- choosing Open Browser from the resulting popup menu.
-
- • The text format of Codeworks scripts contain syntactical
- information. Words in bold are messages; words in plaintext are
- operators or objects; and italicized text represents comments.
- Crossed-out text represents code that is not currently in use.
-
- • To make a word bold while typing, simply hold down the shift key
- as you type the first character of the word.
-
- • All Codeworks windows can be resized by dragging from the lower
- right-hand corner, even though there is no resize box.
-
- • To interrupt a running program, type command-escape.
-
- • To set a breakpoint in the code, preface the statement with a
- pound sign (#).
-
-
- A Recommended Path Through the Document Set
-
- From here, it is best to move on to the Codeworks Tutorial, and continue
- with the Scripting Manual. The tutorial is well-written and well-explained,
- but the example that was chosen does not show off Codeworks at its best. We
- realize this, and are in the process of rewriting the tutorial (and all of
- our other documents) for the next version.
-
- If you have questions or comments about Codeworks, please contact us!
-
- • You can write to us at frontdesk@glyphic.com .
-
- • Keep up with Codeworks via our Web site: http://www.glyphic.com/
-
- • If you'd like to join our mailing list, please see
-
- http://www.glyphic.com/glyphic/request.html
-
- or send us email at codeworks-users-request@glyphic.com .
-
-